<template>
  <div class="floor_twogoods clearfix" v-if="show">
      <a v-for="item in data" :href="item.linkUrl">
        <img :src="item.picUrl | imgUrl">
      </a>
    </div>
</template>
<script>

export default {
  props: ['cdata'],
  data() {
    return {
      show: true,
      data: []
    }
  },
  created() {
    if (!this.cdata[0].tag) {
      this.show = false
      return
    }
    this.data = this.cdata[0].tag
  }
}
</script>

<style lang="scss" scoped>
.floor_twogoods {
    width: 100%;
    height: 7.18rem;
    text-align: center;
    font-size: 0
}

.floor_twogoods a {
    display: inline-block
}

.floor_twogoods a img {
    width: 7.18rem;
    height: 7.18rem
}
</style>
